package com.tsd.jxc.buy.service;

import com.tsd.core.vo.PageBean;
import com.tsd.jxc.buy.entity.JxcBuyOrderDetailSod;
import com.tsd.jxc.buy.entity.JxcBuyOrderDetailSodExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcBuyOrderDetailSod服务实现层接口
 *
 * @author Hillpool
 * @date 2022/12/12 11:23:08
 */
public interface JxcBuyOrderDetailSodService {

    /**
     * 描述：根据id获取JxcBuyOrderDetailSod
     *
     * @param id
     */
    JxcBuyOrderDetailSod getJxcBuyOrderDetailSodById(Long id) throws Exception;

    /**
     * 描述：根据sid获取JxcBuyOrderDetailSod
     *
     * @param sid
     */
    JxcBuyOrderDetailSodExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除JxcBuyOrderDetailSod
     *
     * @param list
     */
    void deleteJxcBuyOrderDetailSods(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新JxcBuyOrderDetailSod
     *
     * @param record
     * @param opUser
     */
    void saveJxcBuyOrderDetailSod(JxcBuyOrderDetailSod record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询JxcBuyOrderDetailSod
     *
     * @param params
     * @param page
     */
    List<JxcBuyOrderDetailSodExt> findJxcBuyOrderDetailSods(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询JxcBuyOrderDetailSod
     *
     * @param params
     */
    List<JxcBuyOrderDetailSodExt> findJxcBuyOrderDetailSods(Map<String, Object> params) throws Exception;
}